﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;
using System.Windows.Forms;

namespace GSManager
{
    public class KetNoi
    {
        public static OleDbConnection KetNoiDuLieu()
        {
            //AttachDbFilename=" + Application.StartupPath + @"\DATA.MDF" + ";
            string cnStr = @"Provider=SQLOLEDB;Server=.\SQLEXPRESS;Database=DATA; Trusted_Connection=yes;";

            OleDbConnection cn = new OleDbConnection(cnStr);
            cn.Open();
            return cn;
        }
    }
}
